//新版首页
.index-wrap {
    .wrap {
        margin-bottom: 0;
    }
    .index-bg {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width:100%;
        height: 100%;
        z-index: -1;
        overflow: hidden;
        img {
            width: 100%;
            height: 100%;
            overflow: hidden;
            vertical-align: bottom;
        }
    }
    .y-logo {
        background-image: url("../../assets/images/index-icon.png");
        background-repeat: no-repeat;
        background-size: 233px;
        width: 60px;
        height: 7px;
        display: block;
        background-position-y: -4px;
        background-position-x: -138px;
        position: relative;
        right: 0;
        left: 100%;
        margin-left: -68px;
        top: 20px;
        padding-top:48px;
        font-size:12px;
        color:#fff;
    }
    .mid-con {
        text-align: center;
        overflow: hidden;
        margin-top: 18%;
        .bg-icon {
            display: block;
            background-image: url("../../assets/images/index-icon.png");
            background-repeat: no-repeat;
            background-size: 200px auto;
        }
        .top, .bottom {
            display: block;
            font-size: 0;
            -webkit-text-size-adjust: none;
        }
        .bottom {
            position: relative;
            left: 46px;
            top: -6px;
        }
        .reccomend {
            display: inline-block;
            margin-right: -1px;
            position: relative;
            .bg-icon {
                width: 100px;
                height: 183px;
                background-position-x: 2px;
                background-position-y: -71px;
            }
            .bg-txt {
                position: absolute;
                top: 121px;
                left: 32px;
                color: #666;
                font-size: 14px;
            }
            &.checked {
                .bg-icon {
                    background-position-x: 2px;
                    background-position-y: -266px;
                }
                .bg-txt {
                    color: #fff;
                }
            }
        }
        .online {
            display: inline-block;
            position: relative;
            .bg-icon {
                width: 188px;
                height: 183px;
                background-position-x: -4px;
                background-position-y: -451px;
            }
            .bg-txt {
                position: absolute;
                top: 121px;
                left: 54px;
                color: #666;
                font-size: 14px;
            }
            &.checked {
                .bg-icon {
                    background-position-x: -4px;
                    background-position-y: -649px;
                }
                .bg-txt {
                    color: #fff;
                }
            }
        }
        .decoration {
            display: inline-block;
            .bg-icon {
                width: 76px;
                height: 120px;
                background-position-x: -12px;
                background-position-y: -1122px;
            }
        }
        .travel {
            display: inline-block;
            margin-left: -2px;
            position: relative;
            .bg-icon {
                width: 123px;
                height: 122px;
                background-position-x: -4px;
                background-position-y: -859px;
            }
            .bg-txt {
                position: absolute;
                top: 62px;
                left: 20px;
                color: #666;
                font-size: 14px;
            }
            &.checked {
                .bg-icon {
                    background-position-x: -4px;
                    background-position-y: -1000px;
                }
                .bg-txt {
                    color: #fff;
                }
            }
        }
    }
}

//新版景区推荐
.main-wrap {
    .scenery-box {
        display: block;
        position: relative;
        overflow: hidden;
        width: 100%;
        padding-top: 40%;
        .img-bg {
            //position: relative;
            //width: 100%;
            //padding-top: 40%;
            img {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 150%;
            }
        }
        .img-bg-shadow {
            position: absolute;
            width: 35%;
            background-color: rgba(20, 20, 20, 0.5);
            z-index: 20;
            height: 100%;
            top: 0;
        }
        .info {
            position: relative;
            top: 50%;
            z-index: 30;
            padding: 0 12px;
            margin-top: -56px;
            box-sizing: border-box;
            overflow: hidden;
            .s-title {
                font-size: 17px;
                color: #e6e6e6;
                .noBreak();
            }
            .divider {
                width: 100%;
                height: 1px;
                background: #ccc;
                margin: -2px 0 10px 0;
            }
            .s-tips {
                font-size: 12px;
                color: #e6e6e6;
                padding-bottom: 10px;
                .noBreak();
                .txt {
                    margin-top: -9px;
                }
            }
            .g-icons {
                width: 14px;
                height: 16px;
                display: inline-block;
                background-image: url("../../assets/images/autoGuide_icons.png");
                background-repeat: no-repeat;
                background-size: 40px auto;
                background-position-x: -2px;
                background-position-y: -169px;
                position: relative;
                top: 5px;
                margin-top: -9px;
            }
            //.s-tips:nth-last-child(2){
            //    padding-bottom: 5px;
            //}
        }
    }
    .scenery-box:nth-child(2n+1) {
        .img-bg-shadow, .info {
            right: 0;
            text-align: right;
        }
        .info {

        }
    }
}
//在线导览
.main-wrap.online{
    .scenery-box{

        .img-bg {

            img {

            }
        }
        .img-bg-shadow{
            width:100%;
        }
        .info {
            margin-top:-28px;
            text-align:center;
            .s-title {
                font-size:18px;
            }
            .divider {
                width:30%;
                margin:4px auto;
            }
            .s-tips{
                font-size:14px;
            }
            div.s-tips {
                margin-top:4%;
                font-size:12px;
                text-align:right;
                .txt {
                    font-size:12px;
                }
            }
            .g-icons {
                top:4px;
                width:20px;
                height:19px;
                background-size: 40px auto;
                background-position-x: -1px;
                background-position-y: -164px;
            }
        }
    }
}
//新版景区 景点详情
.wrap.no-padding {
    padding-top: 0px;
}
.scenery-spot-wrap {
    .banner-panel {
        position: relative;
        width: 100%;
        padding-top: 54%;
        p {
            padding: 0 10px;
            box-sizing: border-box;
            position: absolute;
            top: 50%;
            margin-top: -19px;
            color: #fff;
            font-size: 24px;
            font-weight: 700;
            text-shadow: 2px 2px 1px #000;
            z-index: 22;
            text-align: center;
            width: 100%;
        }
        img {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
        }
    }
    .spot-sign {
        border-bottom: 1px solid #ccc;
        a{
            display: block;
            text-align: center;
            color: #fff;
            width: 90px;
            padding: 5px 10px;
            margin: 0 auto;
            margin-top: 20px;
            margin-bottom: 5px;
            -webkit-border-radius: 10px;
            -moz-border-radius: 10px;
            border-radius: 15px;
            background: #7f95fb;
            box-shadow: 0 3px 1px #4162ff;
        }
        p {
            font-size: 12px;
            color: #999;
            text-align: center;
            margin-bottom: 20px;
        }
    }
    .area-sign {
        background: #fff;
        display: flex;
        border-bottom: 10px solid #eee;
        padding: 10px 0;
        &.spot{
            border-bottom:none;
        }
        a {
            display: block;
            flex: 1;
            text-decoration: none;
            text-align: center;
            color: #333;
            .p-count{
                margin-top:6px;
            }
            .f-icon {
                background-image: url(../../assets/images/jy-icon.png);
                background-repeat: no-repeat;
                background-size:103px;
                width: 55px;
                height: 52px;
                display: block;
                margin: 0 auto;
            }
        }
        //景点游豆
        //.spot-beans{
        //    position: relative;
        //    padding: 10px 0;
        //    .f-icon {
        //        background-size:200px;
        //        background-position-x:0px;
        //        background-position-y:-1634px;
        //        position: absolute;
        //        top: -37px;
        //        left: 50%;
        //        margin-left: -25px;
        //    }
        //    strong{
        //        position: relative;
        //        top:13px;
        //    }
        //    .small{
        //        position: relative;
        //        top:15px;
        //        font-size:12px;
        //        color: #999;;
        //    }
        //}
        //景点视频2016/8/31
        .spot-video{
            position: relative;
            padding: 10px 0;
            .f-icon {
                width:52px;
                height:52px;
                background-size:200px;
                background-position: 0 -1715px;
                position: absolute;
                top: -37px;
                left: 50%;
                margin-left: -25px;

               -webkit-animation: circleRotate 4s linear infinite;
               @-webkit-keyframes  circleRotate{
                    0%{
                        -webkit-transform:rotate(0deg);
                    }
                   100%{
                       -webkit-transform:rotate(360deg);
                   }
               }
            }
            .btn-switch{
                width:52px;
                height:52px;
                position:absolute;
                top:-37px;
                left:50%;
                margin-left:-25px;
                background-image: url("../../assets/images/jy-icon.png");
                background-repeat: no-repeat;

                &.on{
                    background-position:-54px -1715px;
                }
                &.off{
                    background-position:-98px -1715px;
                }
            }
            strong{
                position: relative;
                top:13px;
            }
            .small{
                position: relative;
                top:15px;
                font-size:12px;
                color: #999;;
            }
        }
        //景区图标
        .guide {
            .f-icon {
                background-position: -22px -783px;
            }
        }
        .strategy {
            .f-icon {
                background-position:-50px -589px;
            }
        }
        .gohere {
            .f-icon {
                background-position: 2px -589px;
            }
        }
    }
    .fine-comments {
        margin-top: 10px;
        border-top: 1px solid #eee;
        background: #fff;
        .cts-title {
            box-sizing: border-box;
            padding: 0 12px; 
            position: relative;
            font-size: 20px;
            color: #000;
            border-bottom: 1px solid #eee;
        }
        .cts-content {
            .cts-item {
                margin: 0 12px;
                display: block;
                padding: 10px 0;
            }
            .page-title {
                padding: 10px 0px 5px 0px;
                display: flex;
                .user-portrait {
                    position: relative;
                    display: inline-block;
                    width: 42px;
                    height: 42px;
                    margin-right: 15px;
                    img {
                        width: 100%;
                        height: 100%;
                        border-radius: 50%;
                    }
                    .doudou-level {
                        position: absolute;
                        top: 21px;
                        right: -11px;
                        display: inline-block;
                        background-repeat: no-repeat;
                        background-size: 37px auto;
                        background-image: url("../../assets/images/travel-beans.png");
                        height: 26px;
                        width: 28px;
                        background-position-y: 0;
                        background-position-x: 0;
                    }
                }
                .user-name {
                    flex: 1;
                    color: #111;
                 .date{
                     color: #B2B2B2;
                     font-size: 12px;
                 }
                }
                .thumbs-up-wrap{
                    margin: 0 20px;
                    text-align: center;
                    .thumbs-up {
                        display: inline-block;
                        background-image: url(../../assets/images/autoGuide_icons.png);
                        background-repeat: no-repeat;
                        -webkit-background-size: 50px auto;
                        background-size: 50px auto;
                        width: 22px;
                        height: 20px;
                        background-position-y: -175px;
                        background-position-x: -22px;
                    }
                    .active-thumbs-up {
                        background-position-y: -195px;
                        background-position-x: -21px;
                    }
                    .numbers{
                        color: #999;
                        font-size: 12px;
                    }
                }
                .thumbs-down-wrap{
                    text-align: center;
                    .thumbs-down {
                        display: inline-block;
                        background-image: url(../../assets/images/autoGuide_icons.png);
                        background-repeat: no-repeat;
                        -webkit-background-size: 50px auto;
                        background-size: 50px auto;
                        width: 22px;
                        height: 20px;
                        margin-right: 5px;
                        background-position-y: -236px;
                        background-position-x: 0px;
                    }
                    .active-thumbs-down {
                        background-position-y: -237px;
                        background-position-x: -22px;
                    }
                    .numbers{
                        color: #999;
                        font-size: 12px;
                    }
                }
            }
            .txt-img{
                display: block;
                border-bottom: 1px solid #ddd;
                padding-bottom: 10px;
                margin-left: 57px;
                .img-show {
                    margin-top: 20px;
                    img {
                        width: 75px;
                        height: 75px;
                        margin-right:4px;
                    }
                }
                .txt-show {
                    color: #666;
                    font-size: 14px;
                    margin-bottom: 10px;
                    margin-top: 20px;
                    padding-right: 5px;
                }
            }

        }
    }
}
.sport-detail {
    .channel-content {
        background: #fff;
        padding: 0px 12px;
        box-sizing: border-box;
        color: #333;
        padding: 0 10px;
        width: 100%;
        font-size: 16px;
        line-height: 30px;
        .channel-title {
            font-size: 18px;
            color: #000;
            text-align: center;
            font-weight: 700;
            padding: 10px 0;
        }
        img {
            width: 100%;
            margin: 10px 0;
        }
    }
}
//视频音频区域
.audio-video {
    .aplayers {
        background: #fff;
        margin: 0px;
        margin-bottom: 10px;
        padding: 10px;
        position: relative;
        overflow: auto;
        p{
            text-align: center;
            font-weight:600;
        }
        .aplayer-button {
            display: inline-block;
            float: left;
            background-image: url(../../assets/images/big-icons.png);
            background-repeat: no-repeat;
            background-size: 80px auto;
            width:80px;
            height:80px;
        }
        .pause{
            background-position-x: -3px;
            background-position-y: 0px;
        }
        .play{
            background-position-x:-3px;
            background-position-y: -77px;
        }
        .timebar{
            display: flex;
            position: relative;
            top: 10px;
            .currenttime,.totaltime{
                font-size: 12px;
                color: #999;
                position: relative;
                top: 22px;
            }
            .progress{
                flex: 1;
            }
        }
        .progress{
            height: 10px;
            background: #ebede6;
            position: relative;
            top: 25px;
            border-radius: 0px;
            margin: 0px 8px;
            box-shadow: inset 0px 0px 3px #aaa;
            .progress-bar{
                flex: 1;
                height: 100%;
                width:0%;
                background: #499df3;
            }
        }
    }
    .vplayers {
        background: #fff;
        margin: 0;
        margin-bottom: 10px;
        padding: 10px 0;
        position: relative;
        overflow: hidden;
        p {
            margin-bottom: 10px;
            text-align: center;
            font-weight:600;
        }
        video {
            width: 100%;
            background:#000;
        }
        i{
            display:inline-block;
            position:absolute;
            z-index:1000;
            top:36%;
            left:43%;
            width:81px;
            height:81px;
            background:
                url(../images/jy-icon.png)
                no-repeat -60px -890px;
        }
        .button-show{
            opacity:1;
            transition:opacity .15s linear;
        }
        .button-hide{
            opacity:0;
            transition:opacity .15s linear;
        }
    }
}
//景区底部分享栏目
.wrap.hasFooter .define-footer{
    background: #fff;
    overflow: inherit;
}

.footer-wrap{
    display: flex;
    padding-left: 15px;
    a {
        text-align: center;
        .f-icon {
            background-image: url(../../assets/images/autoGuide_icons.png);
            background-repeat: no-repeat;
            width: 25px;
            height: 24px;
            margin:12px auto;
            display: inline-block;
        }
    }
    .comments{
        border: 1px solid #ccc;
        border-radius: 26px;
        line-height: 33px;
        color: #b3b3b3;
        text-align: left;
        padding: 0 100px 0 10px;
        margin: 8px 0;
        height: 30px;
        margin-right: 12px;
        .editIcon{
            background-image: url(../../assets/images/little-icons.png);
            background-repeat: no-repeat;
            width: 29px;
            height: 29px;
            /* margin: 12px auto; */
            display: inline-block;
            background-size: 60px auto;
            background-position-y: -252px;
            background-position-x: -34px;
        }
        .write-comment{
            float: right;
            font-size: 15px;
        }
    }
    .praise {
        flex:1;
        position: relative;
        .f-icon {
            background-size: 75px auto;
            background-position-y: -268px;
            background-position-x: -38px;
        }
        .p-count {
            position: relative;
            top: -15px;
            font-size: 14px;
            display: inline-block;
        }
    }
    .praised {
        flex:1;
        position: relative;
        .f-icon {
            background-size: 75px auto;
            background-position-y: -299px;
            background-position-x: -38px;
        }
        .p-count {
            position: relative;
            top: -15px;
            font-size: 14px;
            display: inline-block;
        }
    }
    .collect {
        flex:1;
        .f-icon {
            background-size: 50px auto;
            background-position-y: -265px;
            background-position-x: -25px;
        }
    }
    .collected {
        flex:1;
        .f-icon {
            background-size: 50px auto;
            background-position-y: -265px;
            background-position-x: -1px;
        }
    }
}

//新版游玩路线按钮
.travel-route {
    .position(false; 0px; 0px; 0px; fixed);
    .tl-btn {
        .position(false; 30px; 30px; false; absolute);
        .map-icon {
            display: inline-block;
            background-image: url(../../assets/images/big-icons.png);
            background-repeat: no-repeat;
            -webkit-background-size: 85px auto;
            background-size: 85px auto;
            height: 40px;
            width: 40px;
            background-position-y: -309px;
            background-position-x: 0;
        }
    }
    .tl-panel {
        .position(false; 35px; 60px; false; absolute);
        font-size: 12px;
        width: 118px;
        text-align: center;
        a {
            color: #fff;
            display: block;
            border-bottom: 1px solid #eee;
            padding: 15px;
            background: rgba(0, 0, 0, 0.6);
        }
        a:nth-last-child(2) {
            border: none 0;
        }
        span {
            position: relative;
            margin-left: 97px;
            display: inline-block;
            border-right: 10px solid transparent;
            border-bottom: 10px solid transparent;
            border-left: 10px solid transparent;
            border-top: 10px solid rgba(0, 0, 0, 0.6);
        }
    }
    .hidden {
        display: none;
    }
}


//页面搜索模块
#SearchPop{
    height: 100%;
    &.weui-popup-container-visible {
        display: block;
        top: 0;
        bottom: 0;
    }
    .weui-popup-modal.weui-popup-modal-visible{
        background: rgba(0,0,0,0.5);
    }
    .search-header{
        border-bottom: 1px solid #aaa;
        .weui_search_bar{
            border:0 none;
            background: #fff;
            .weui_search_outer{
                border-radius: 26px;
            }
            .weui_search_text{
                background: #eee;
                border-radius: 26px;
            }
            .weui_search_text span{
                color:#1b82ec;
                font-size: 14px;
            }
            .weui_icon_search:before {
                color: #1b82ec;
                font-size: 14px;
            }
        }
        .weui_search_focusing{
            .weui_search_cancel {
                display: block;
                margin-left: 10px;
                line-height: 28px;
                color: #1b82ec;
            }
        }
        .weui_search_bar:before, .weui_search_bar:after{
            border:0 none;
        }
    }
    .search-content{
        background: #fff;
        padding: 5px 10px;
        font-size: 14px;
        a{
            color: #1b82ec;
        }
        .mark-icon{
            display: inline-block;
            background-image: url("../../assets/images/little-icons.png");
            background-repeat: no-repeat;
            background-size: 50px auto;
            width: 25px;
            height: 20px;
            background-position-x: 0px;
            background-position-y: -92px;
            position: relative;
            top: 4px;
            margin-right: 5px;
        }
    }
}

//在线导览里面的位置定位页面模块儿
.weui-popup-container {
    z-index: 2000;
    height: 90%;
    .address-list {
        padding: 0;
        margin: 0;
        width: 100%;
        overflow: auto;
        .address-item {
            &.weui_cell:before {
                left: 0;
            }
        }
    }
}





//评论输入框
.ct-inputBox {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    .weui_uploader_file {
        position: relative;
        img {
            width: 100%;
            height: 100%;
        }
    }
    .weui_uploader_input_wrp {
        margin-bottom: 0px;
    }
    .upload_loading {
        position: relative;
        float: none;
        display: inline-block;
        margin-right: 9px;
        margin-bottom: 9px;
        width: 79px;
        height: 79px;
        font-size: 12px;
        color: red;
    }
    textarea {
        box-sizing: border-box;
        text-indent: 2em;
        color: #999;
        width: 100%;
        height: 200px;
        border-radius: 5px;
        padding: 5px;
        border: 0 none;
        outline: none;
    }
    .delete {
        background: #666;
        color: #fff;
        /* float: right; */
        border-radius: 50%;
        width: 20px;
        height: 20px;
        text-align: center;
        line-height: 20px;
        position: absolute;
        top: 0;
        right: 0px;
    }
}

.submit-box {
    overflow: auto;
    padding: 0px 0 0px 20px;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    .pic-btn, .vol-btn {
        color: #999;
        font-size: 20px;
        color: #999;
        font-size: 26px;
        margin-right: 20px;
    }
    .submit-btn {
        background: #4162ff;
        padding: 8px 30px;
        color: #fff;
        float: right;
    }
}